<{include file="admincp_header.htm"}>
<script language="javascript">
function deletesection(id) {
	if(confirm('<{$lan.suredelsection}>')) {
		document.location='index.php?file=admincp&action=deletesection&vc=<{$vc}>&id='+id;
	}
}
</script>
<body>
<div class="block"></div>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="commontable">
	<tr class="header">
		<td width="35">ID</td>
		<td width="90"><{$lan.section_name}></td>
		<td><{$lan.description}></td>
		<td width="60"><{$lan.item_num}></td>
		<td width="60"><{$lan.createdefault}></td>
		<td width="80"><div align="center"><strong><{$lan.order}></strong></div></td>
		<td width="50"><div align="center"><strong><{$lan.delete}></strong></div></td>
	</tr>
	<{$str_sections}>
</table>
<div class="block"></div>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="commontable">
<form action="index.php?file=admincp&action=newsection" method="post">
	<tr class="header">
		<td colspan="10"><{$lan.section_new}></td>
	</tr>
	<tr>
		<td width="50"><{$lan.section_name}></td>
		<td><input type="text" value="" name="section" class="mustoffer"></td>
	</tr>
	<tr>
		<td><{$lan.alias}></td>
		<td><input type="text" value="" name="alias"></td>
	</tr>
	<tr>
		<td><{$lan.description}></td>
		<td><textarea name="description" cols="60" rows="5"></textarea></td>
	</tr>
	<tr>
		<td><{$lan.keywords}></td>
		<td><textarea name="keywords" cols="60" rows="3"></textarea></td>
	</tr>
	<tr>
		<td><{$lan.sectionhometemplate}></td>
		<td><select name="defaulttemplate">
		<option value=""><{$lan.default}></option>
		<{$selecttemplates}>
		</select></td>
	</tr>
	<tr>
		<td><{$lan.sectionpagetemplate}></td>
		<td><select name="listtemplate">
		<option value=""><{$lan.default}></option>
		<{$selecttemplates}>
		</select></td>
	</tr>
	<tr>
		<td><{$lan.ifcreatehtml}></td>
		<td>
			<input type="radio" name="html" value="0"<{if $html eq 0}> checked<{/if}>><{$lan.withglobal}>
			<input type="radio" name="html" value="1"<{if $html eq 1}> checked<{/if}>><{$lan.yes}>
			<input type="radio" name="html" value="-1"<{if $html eq -1}> checked<{/if}>><{$lan.no}>
		</td>
	</tr>
	<tr>
		<td><{$lan.sectionhomemethod}></td>
		<td><input type="text" value="" name="sectionhomemethod" size="50"><br>
		(<{$lan.default}>:"<{$setting_sectionhomemethod}>"&nbsp;<a href="index.php?file=setting&action=generally"><{$lan.modifyglobalsetting}></a>)<br>
		<{$lan.sectionhomemethod_description}></td>
	</tr>
	<tr>
		<td><{$lan.sectionpagemethod}></td>
		<td><input type="text" value="" name="sectionpagemethod" size="50"><br>
		(<{$lan.default}>:"<{$setting_sectionpagemethod}>"&nbsp;<a href="index.php?file=setting&action=generally"><{$lan.modifyglobalsetting}></a>)<br>
		<{$lan.sectionpagemethod_description}></td>
	</tr>
	<tr>
		<td><{$lan.order}></td>
		<td><input type="text" value="0" name="order"></td>
	</tr>
	<tr>
		<td colspan="10" align="center"><input type="submit" value="<{$lan.save}>" name="section_new_submit"></td>
	</tr>
	</form>
</table>
</body>
</html>